![]() |
GetControlRegion |
||||
Header: | Controls.h | Carbon status: | Supported | |
Obtains the region corresponding to a given control part.
OSStatus GetControlRegion ( ControlRef inControl, ControlPartCode inPart, outRegion );
A handle to the control containing the part for which a region is to be obtained.
A constant identifying the control part for which a region is to obtained; you may specify the kControlStructureMetaPart and kControlContentMetaPart control part codes, as well as the standard control part codes. See
On input, a value of type RgnHandle. On return, GetControlRegion sets the region to contain the actual dimensions and position of the control part, in local coordinates.
A result code.
This function is available with Mac OS 8.5 and later.
Supported in Carbon. Available in Mac OS 8.5 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)